{% extends "base.html" %}
{% load staticfiles %}
{% block title %}价格管理{% endblock %}
{% block css %}
	{% include "common/_stylesheets.html" %}
    <!-- Datatables -->
    <link href="{% static 'vendors/datatables.net-bs/css/dataTables.bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'vendors/datatables.net-buttons-bs/css/buttons.bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'vendors/datatables.net-fixedheader-bs/css/fixedHeader.bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'vendors/datatables.net-responsive-bs/css/responsive.bootstrap.min.css' %}" rel="stylesheet">
    <link href="{% static 'vendors/datatables.net-scroller-bs/css/scroller.bootstrap.min.css' %}" rel="stylesheet">
{% endblock %}

{% block content %}
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3>价格管理<!-- <small> 用户基本信息管理 </small> --></h3>
    </div>
    
  </div>

  <div class="clearfix"></div>

  <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
      <div class="x_panel">
        <div class="x_title">
          <h2>调整记录列表<!-- <small>Users</small> --></h2>
          <ul class="nav navbar-right">
	            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
	            </li>
	      </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
         {% if request.session.usertype == 1 %}
          <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
            <thead>
              <tr>
               		<th>Id</th>
			  		<th>资源名称</th>
			  		<th>计量单位</th>
			  		<th>单价</th>
			  		<th>创建时间</th>
              </tr>
            </thead>
            <tbody>
            	{% for list in contacts %}  
				   	<tr>  
					     <td>  {{ list.id }}    </td> 
					     <td>  {{ list.price_name }}  </td>
					     <td>  {{ list.unit }}    </td>
					     <td>  {{ list.unit_price }}    </td> 
					     <td>  {{ list.create_time }}    </td> 
				  	 </tr>  
			   {% endfor %}  
            </tbody>
          </table>
          {% else %}
          	权限不通过
          {% endif %}
        </div>
      </div>
    </div>
  </div>
</div>
{% endblock  %}
{% block js %} 
	{% include "common/_js.html" %}
    <!-- Datatables -->
    <script src="{% static 'vendors/datatables.net/js/jquery.dataTables.min.js' %}"></script>
    <script src="{% static 'vendors/datatables.net-bs/js/dataTables.bootstrap.min.js' %}"></script>
    <script src="{% static 'vendors/datatables.net-responsive/js/dataTables.responsive.min.js' %}"></script>
    <script src="{% static 'vendors/datatables.net-responsive-bs/js/responsive.bootstrap.js' %}"></script>
{% endblock %}